package tech.aistar.prj.model.pojo;


import java.io.Serializable;
import java.util.Date;

public class Video implements Serializable {

  private Integer id;
  private String title;
  private String videoUrl;
  private Integer userId;
  private Date createDate;
  private Integer likes;
  private Double score;
  private Integer status;

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  public Double getScore() {
    return score;
  }

  public void setScore(Double score) {
    this.score = score;
  }

  public Video() {
  }

  public Video(Integer id, String title, String videoUrl, Integer userId, Date createDate, Integer likes,Double score,Integer status) {
    this.id = id;
    this.title = title;
    this.videoUrl = videoUrl;
    this.userId = userId;
    this.createDate = createDate;
    this.likes = likes;
    this.score = score;
    this.status = status;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public String getVideoUrl() {
    return videoUrl;
  }

  public void setVideoUrl(String videoUrl) {
    this.videoUrl = videoUrl;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public Integer getLikes() {
    return likes;
  }

  public void setLikes(Integer likes) {
    this.likes = likes;
  }

  @Override
  public String toString() {
    final StringBuffer sb = new StringBuffer("Video{");
    sb.append("id=").append(id);
    sb.append(", title='").append(title).append('\'');
    sb.append(", videoUrl='").append(videoUrl).append('\'');
    sb.append(", userId=").append(userId);
    sb.append(", createDate=").append(createDate);
    sb.append(", likes=").append(likes);
    sb.append(", score=").append(score);
    sb.append(", status=").append(status);
    sb.append('}');
    return sb.toString();
  }
}
